package com.nstar.sinaweibo.controller
{
	import flash.events.Event;

	public class ClientEvent extends Event
	{
		
	//UI
		public static const JUMPTO_HOME				:String = "jumpToHome";
		public static const JUMPTO_FRIENDS			:String = "jumpToFriends";
		public static const JUMPTO_FANS				:String = "jumpToFans";
		public static const JUMPTO_STATUS			:String = "jumpToStatus";
		public static const JUMPTO_RECEIVED_MSGS	:String = "jumpToReceivedMsgs";
		public static const JUMPTO_SENT_MSGS		:String = "jumpToSentMsgs";
		public static const JUMPTO_SENT_COMMENTS	:String = "jumpToSentComments";
		public static const JUMPTO_RECEIVED_COMMENTS:String = "jumpToReceivedComments";
		public static const JUMPTO_FAVOURITES		:String = "jumpToFavourites";
		public static const JUMPTO_MENTIONS			:String = "jumpToMentions";
		public static const JUMPTO_LOGIN			:String = "jumpToLogin";
		public static const BACK_TO_MAIN			:String = "back2Main";
		
		public static const START_REPOST_STATUS		:String = "startRepostStatus";
		public static const CANCEL_REPOST_STATUS	:String = "cancelRepostStatus";
		
		public static const START_SEND_MSG			:String 	= "startSendMsg";
		public static const CANCEL_SEND_MSG			:String 	= "cancelSendMsg";
		
		public static const START_COMMENT_STATUS	:String 	= "startCommentStatus";
		public static const CANCEL_COMMENT_STATUS	:String 	= "cancelCommentStatus";
		
		public static const START_REPLY_COMMENT		:String 	= "startReplyComment";
		public static const START_REPLY_DIRECT_MSG	:String 	= "startReplyDirectMsg";

		public static const PUBLISH_MICRO_BLOG		:String 	= "publishMicroBlog";
		
	//Controller
		public static const LOGIN_SUCCESS			:String 	= "loginSuccess";
		public static const LOGIN_FAILED			:String 	= "loginFailed";
		
		public static const UPDATE_STATUS_SUCCESS	:String 	= "updateStatusSuccess";
		public static const UPDATE_STATUS_FAILED	:String 	= "updateStatusFailed";
		
		public static const REPOST_STATUS_SUCCESS	:String 	= "repostStatusSuccess";
		public static const REPOST_STATUS_FAILED	:String 	= "repostStatusFailed";
		
		public static const COMMENT_STATUS_SUCCESS	:String		= "commentStatusSuccess";
		public static const COMMENT_STATUS_FAILED	:String		= "commentStatusFailed";
		
		public static const REPLY_COMMENT_SUCCESS	:String		= "replyCommentSuccess";
		public static const REPLY_COMMENT_FAILED	:String		= "replyCommentFailed";
		
		public static const DELETE_STATUS_SUCCESS	:String		= "deleteStatusSuccess";
		public static const DELETE_STATUS_FAILED	:String		= "deleteStatusFailed";
		
	//User
		public static const FOLLOW_SUCCESS			:String		= "followSuccess";
		public static const FOLLOW_FAILED			:String		= "followFailed";
		
		public static const CANCEL_FOLLOW_SUCCESS					:String = "cancelFollowSuccess";
		public static const CANCEL_FOLLOW_FAILED					:String = "cancelFollowFailed";
		
	//Comment
		public static const DELETE_COMMENT_SUCCESS					:String = "deleteCommentSuccess";
		public static const DELETE_COMMENT_FAILED					:String = "deleteCommentFailed";
		
	//DirectMessage
		public static const SEND_MSG_SUCCESS						:String = "sendMsgSuccess";
		public static const SEND_MSG_FAILED							:String = "sendMsgFailed";
		
		public static const DELETE_MSG_SUCCESS						:String	= "deleteMsgSuccess";
		public static const DELETE_MSG_FAILED						:String	= "deleteMsgFailed";
	
	//Favorite
		public static const ADD_TO_FAVORITE_SUCCESS					:String	= "addToFavoriteSuccess";
		public static const ADD_TO_FAVORITE_FAILED					:String	= "addToFavoriteFailed";
		
		public static const CANCEL_FAVORITE_SUCCESS					:String = "removeFavoriteSuccess";
		public static const CANCEL_FAVORITE_FAILED					:String	= "removeFavoriteFailed";
	//Relationship
		public static const CHECK_IS_FOLLOWING_SUCCESS				:String	= "checkIsFollowingSuccess";
	//Load
		public static const LOAD_FRIENDS_TIMELINE_SUCCESS			:String	= "loadFriendsTimeLimeSuccess";
		public static const LOAD_STATUS_COUNTS_SUCCESS				:String	= "loadStatusCountsSuccess";
		
		public static const LOAD_MENTIONS_SUCCESS					:String	= "loadMentionsSuccess";
		public static const LOAD_COMMENTS_TIMELINE_SUCCESS			:String	= "loadCommentsTimelineSuccess";
		public static const LOAD_STATUS_COMMENTS_SUCCESS			:String	= "loadStatusCommentsSuccess";
		public static const LOAD_USER_TIMELINE_SUCCESS				:String	= "loadUserimelineSuccess";
		public static const LOAD_DIRECT_MESSAGES_RECEIVED_SUCCESS	:String	= "loadDirectMessageReceivedSuccess";
		public static const LOAD_DIRECT_MESSAGES_SENT_SUCCESS		:String	= "loadDirectMessageSentSuccess";
		public static const LOAD_FAVORITE_LIST_SUCCESS				:String	= "loadFavoriteListSuccess";
		public static const LOAD_USER_INFO_SUCCESS					:String	= "loadUserInfoSuccess";
		public static const LOAD_FRIENDS_INFO_SUCCESS				:String	= "loadFriendsInfoSuccess";
		public static const LOAD_FOLLOWERS_INFO_SUCCESS				:String	= "loadFollowersInfoSuccess";
		
		
		public static const REPLY_COMMENT							:String	= "replyComment";
		public static const DELETE_COMMENT							:String	= "deleteComment";
		public static const AT_USER									:String	= "atUser";
		public static const SEND_DIRECT_MSG							:String	= "sendDirectMsg";
		public static const GET_USER_BY_SCREEN_NAME					:String	= "getUserByScreenName";
		public static const REQUEST_GET_MORE_MSG					:String	= "requestGetMoreMsg";
		
		public static const MESSAGE_READ							:String	= "messageRead";
		public static const EXPAND_LIST								:String	= "expandList";
		public static const CLOSE_LIST								:String	= "closeList";
		
		public static const ENCODE_BMP								:String	= "encodeBmp";
		public static const SHOW_USER								:String	= "showUser";
		public static const HIDE_USER								:String	= "hideUser";
		public static const TEXT_HEIGHT								:String	= "textHeight";
		public static const RESTORE_AUTO_REFRESH					:String	= "restoreAutoRefresh";
		public static const UPDATE_LIST_COMPLETE					:String	= "updateListComplete";
		public static const THEMES_DOWNLOAD_COMPLETE				:String = "themesDownloadComplete";
		public static const NEW_FOLLOWERS							:String = "newFollowers";
		public static const HOLIDAY									:String = "holiday";
		public static const PLAY_VIDEO_IN_EXPLORER					:String = "playVideoInExplorer";
		
		public static const START_DRAG								:String = "startDragView";
		public static const STOP_DRAG								:String = "stopDragView";	
		public static const NEW_MESSAGE_COMING						:String = "newMessageComing";
		
		
		public var data:Object;
		public function ClientEvent(type:String, bubbles:Boolean=false, data:Object=null)
		{
			super(type, bubbles);
			this.data = data;
		}
	}
}